Xbasic

LTRIM Function

Syntax

Output_String as C = LTRIM(C character[,C other_chars])

Arguments

character

The character string to trim.

other_chars

Optional. Default = " " (space). The characters to trim from the left side of Input_String.

Description

Removes any leading blanks (or optional other characters) in a character string.

Discussion

LTRIM() removes any specified leading characters in the Input_String. Search_For_String can be used to specify a list of characters to trim from the start of the Input_String.

Example

ltrim("      rightside") ? "rightside"
ltrim( str(12) ) -> "12"
ltrim("123Alpha","1234567890") ? "Alpha"

See Also